window.onload=function(){
    let form1=document.querySelectorAll(".form-item input");
    let btn=document.querySelector("footer");
    let href=document.querySelector("footer a");
    let numbox=document.querySelectorAll(".pooBox span")

    console.log(form1);
    var pops=document.querySelector(".continerBox");

    var num=0;
    btn.onclick=function () {
        form1.forEach((v)=>{
            num+=Number(v.value);
            v.value=""
        });
        if(num==0){
            alert("请打分");
            href.href="javascript:;"
        }else{
            console.log(num);
            localStorage.setItem("evalCount",num);
            evalCount=JSON.parse(localStorage.getItem("evalCount"));
            pops.style.display="block"
            numbox.forEach(v=>{
                v.innerHTML=num
            })
        };
    }
    





}